package com.yanqu.road.server.cmd.mogulbirthday;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.bossbirthday.MogulBirthdayProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.mogulbirthday.MogulBirthdayMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_MOGUL_BIRTHDAY_SYNC_DATA, desc = "数据下发")
public class CrossMogulBirthdaySyncDataCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        MogulBirthdayProto.CrossMogulBirthdaySyncData syncData = MogulBirthdayProto.CrossMogulBirthdaySyncData.parseFrom(packet.getBytes());
        MogulBirthdayMgr.syncData(serverId, packet.getPlayerId(), syncData);
    }

    @Override
    public void sendData() {

    }
}
